import {getAliPay} from '@/api/member/index.js'
import {isMobileTerminal} from '@/utils/flexible.js'

export const alipay = async(title, desc) => {
  const {encodeURI} = await getAliPay(title, '0.01',desc, isMobileTerminal.value)
  window.location.href = decodeURIComponent(encodeURI)
}